/*
 * @Author: haoxiaoli 
 * @Date: 2022-03-07 15:53:13 
 * @Last Modified by: haoxiaoli
 * @Last Modified time: 2022-03-07 16:52:12
 */

import request from '@/utils/request';
import { configUrl } from './config';
import {baseData} from '@/models';

// 分组
export const getGroup = async() => {
    return await request.get(`${configUrl.PATIENT.LISTS}`);
};
// 患者列表
export const getPatientLists = async(id: number, page: number, pageSize: number, name: string): Promise<baseData> => {
    return await request.get(`${configUrl.PATIENT.LISTS}${id}/records`, {
        data: {
            page,
            pageSize,
            name
        }
    });
};